package com.muyu.danmo.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.muyu.danmo.mapper.DanmoPictureMapper;
import com.muyu.danmo.domain.DanmoPicture;
import com.muyu.danmo.service.IDanmoPictureService;

/**
 * 照片Service业务层处理
 * 
 * @author kunzong
 * @date 2024-12-21
 */
@Service
public class DanmoPictureServiceImpl implements IDanmoPictureService 
{
    @Autowired
    private DanmoPictureMapper danmoPictureMapper;

    /**
     * 查询照片
     * 
     * @param id 照片主键
     * @return 照片
     */
    @Override
    public DanmoPicture selectDanmoPictureById(Long id)
    {
        return danmoPictureMapper.selectDanmoPictureById(id);
    }

    /**
     * 查询照片列表
     * 
     * @param danmoPicture 照片
     * @return 照片
     */
    @Override
    public List<DanmoPicture> selectDanmoPictureList(DanmoPicture danmoPicture)
    {
        return danmoPictureMapper.selectDanmoPictureList(danmoPicture);
    }

    /**
     * 新增照片
     * 
     * @param danmoPicture 照片
     * @return 结果
     */
    @Override
    public int insertDanmoPicture(DanmoPicture danmoPicture)
    {
        return danmoPictureMapper.insertDanmoPicture(danmoPicture);
    }

    /**
     * 修改照片
     * 
     * @param danmoPicture 照片
     * @return 结果
     */
    @Override
    public int updateDanmoPicture(DanmoPicture danmoPicture)
    {
        return danmoPictureMapper.updateDanmoPicture(danmoPicture);
    }

    /**
     * 批量删除照片
     * 
     * @param ids 需要删除的照片主键
     * @return 结果
     */
    @Override
    public int deleteDanmoPictureByIds(Long[] ids)
    {
        return danmoPictureMapper.deleteDanmoPictureByIds(ids);
    }

    /**
     * 删除照片信息
     * 
     * @param id 照片主键
     * @return 结果
     */
    @Override
    public int deleteDanmoPictureById(Long id)
    {
        return danmoPictureMapper.deleteDanmoPictureById(id);
    }
}
